package com.rock.securityresearch.domain

enum RangeType {
    case Custom
    case Days5
    case Days20
    case Days60
}
object RangeType {
    def apply(period: String, default: RangeType = RangeType.Custom): RangeType = {
        period match
            case "Custom" => RangeType.Custom
            case "Days5" => RangeType.Days5
            case "Days20" => RangeType.Days20
            case "Days60" => RangeType.Days60
            case _ => default
    }
}
